<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<script type="text/javascript">
			for (var i = 0; i < 5; i++) {
				setInterval((function(i){
					function test(){
						console.log(i);
					}
					return test;
				})(i),1000)
			}
		</script>
	</body>
</html>
